package org.hxyjs.entity;

import java.io.Serializable;

/**
 * @author 
 */
public class Orderdetails implements Serializable {
    private String odno;

    private String bno;

    private String orrno;

    private String odnumber;

    private String odtitle;

    private String odprice;

    private String oddescribe;

    private Integer odstate;

    private static final long serialVersionUID = 1L;

    public String getOdno() {
        return odno;
    }

    public void setOdno(String odno) {
        this.odno = odno;
    }

    public String getBno() {
        return bno;
    }

    public void setBno(String bno) {
        this.bno = bno;
    }

    public String getOrrno() {
        return orrno;
    }

    public void setOrrno(String orrno) {
        this.orrno = orrno;
    }

    public String getOdnumber() {
        return odnumber;
    }

    public void setOdnumber(String odnumber) {
        this.odnumber = odnumber;
    }

    public String getOdtitle() {
        return odtitle;
    }

    public void setOdtitle(String odtitle) {
        this.odtitle = odtitle;
    }

    public String getOdprice() {
        return odprice;
    }

    public void setOdprice(String odprice) {
        this.odprice = odprice;
    }

    public String getOddescribe() {
        return oddescribe;
    }

    public void setOddescribe(String oddescribe) {
        this.oddescribe = oddescribe;
    }

    public Integer getOdstate() {
        return odstate;
    }

    public void setOdstate(Integer odstate) {
        this.odstate = odstate;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Orderdetails other = (Orderdetails) that;
        return (this.getOdno() == null ? other.getOdno() == null : this.getOdno().equals(other.getOdno()))
            && (this.getBno() == null ? other.getBno() == null : this.getBno().equals(other.getBno()))
            && (this.getOrrno() == null ? other.getOrrno() == null : this.getOrrno().equals(other.getOrrno()))
            && (this.getOdnumber() == null ? other.getOdnumber() == null : this.getOdnumber().equals(other.getOdnumber()))
            && (this.getOdtitle() == null ? other.getOdtitle() == null : this.getOdtitle().equals(other.getOdtitle()))
            && (this.getOdprice() == null ? other.getOdprice() == null : this.getOdprice().equals(other.getOdprice()))
            && (this.getOddescribe() == null ? other.getOddescribe() == null : this.getOddescribe().equals(other.getOddescribe()))
            && (this.getOdstate() == null ? other.getOdstate() == null : this.getOdstate().equals(other.getOdstate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getOdno() == null) ? 0 : getOdno().hashCode());
        result = prime * result + ((getBno() == null) ? 0 : getBno().hashCode());
        result = prime * result + ((getOrrno() == null) ? 0 : getOrrno().hashCode());
        result = prime * result + ((getOdnumber() == null) ? 0 : getOdnumber().hashCode());
        result = prime * result + ((getOdtitle() == null) ? 0 : getOdtitle().hashCode());
        result = prime * result + ((getOdprice() == null) ? 0 : getOdprice().hashCode());
        result = prime * result + ((getOddescribe() == null) ? 0 : getOddescribe().hashCode());
        result = prime * result + ((getOdstate() == null) ? 0 : getOdstate().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", odno=").append(odno);
        sb.append(", bno=").append(bno);
        sb.append(", orrno=").append(orrno);
        sb.append(", odnumber=").append(odnumber);
        sb.append(", odtitle=").append(odtitle);
        sb.append(", odprice=").append(odprice);
        sb.append(", oddescribe=").append(oddescribe);
        sb.append(", odstate=").append(odstate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}